﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CardInChina.Bussiness.Frontend.Models
{
    public class PayPaypal : PayInterfaceModel
    {
                        //        <input type="hidden" name="cmd" value="_xclick">
                        //<input type="hidden" name="business" value="jordan20040101@hotmail.com">
                        //<input type="hidden" name="item_name" value="">
                        //<input type="hidden" name="item_number" value="">
                        //<input type="hidden" name="quantity" value="1">
                        //<input type="hidden" name="invoice" value="1">
                        //<input type="hidden" name="amount" value="12.50"> 金额
                        //<input type="hidden" name="currency_code" value="CAD">
                        //<input type="hidden" name="country_code" value="CA">
                        //<input type="hidden" name="return" value="http://www.cardinchina.com/processing.asp?order_id=1&order_str=58fd43497cb8f109c84b9c17770f45c6">
                        //<input type="hidden" name="cancel_return" value="http://www.cardinchina.com/paypal_cancel.asp">
                        //<input type="submit" value="Paypal 支付">

        [Field("cmd")]
        public string CMD { get; set; }

        [Field("business")]
        public string Business { get; set; }

        [Field("item_name")]
        public string ItemName { get; set; }

        [Field("quantity")]
        public string Quantity { get; set; }

        [Field("invoice")]
        public string Invoice { get; set; }

        [Field("amount")]
        public string Amount { get; set; }

        [Field("currency_code")]
        public string CurrencyCode { get; set; }

        [Field("country_code")]
        public string CountryCode { get; set; }

        [Field("return")]
        public string Return { get; set; }

        [Field("cancel_return")]
        public string CancelReturn { get; set; }


        public PayPaypal()
            : base("https://www.paypal.com/cgi-bin/webscr", "post")
        {
 
        }

        protected override void RenderSubmit(StringBuilder sb)
        {
            throw new NotImplementedException();
        }
    }
}
